package
{

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.geom.Rectangle;

import starling.core.Starling;
import starling.events.Event;

[SWF(width="960", height="640", frameRate="60", backgroundColor="#ffffff")]
public class Main extends Sprite
{
	public static const STAGE_SIZE_WIDTH:int = 960;
	public static const STAGE_SIZE_HEIGHT:int = 640;

	private var mStarling:Starling;

	public function Main()
	{
		stage.scaleMode = StageScaleMode.NO_SCALE;
		stage.align = StageAlign.TOP_LEFT;

		var viewPort:Rectangle = new Rectangle(0, 0, STAGE_SIZE_WIDTH, STAGE_SIZE_HEIGHT);

		mStarling = new Starling(PerformanceTestScene, stage, viewPort);

		mStarling.showStats = true;
		mStarling.stage.stageWidth = STAGE_SIZE_WIDTH;
		mStarling.stage.stageHeight = STAGE_SIZE_HEIGHT;

		mStarling.addEventListener(Event.ROOT_CREATED, function ():void
		{
			mStarling.start();
		});
	}
}
}
